<%@ page language="java" pageEncoding="utf-8"%>
<%@taglib prefix="s" uri="/struts-tags"%>
${aier_doctype}
<html <s:property value="aier_html_xmlns" escape="false"/>>
<head>
<meta http-equiv="Content-Type" content="${aier_content_type}" />
<title><s:property value="aier_title" />
</title>
<meta name="keywords" content="${aier_keyworks}" />
<meta name="description" content="${aier_description}" />
<link href="${aier_css_url}jc/chosen.css" rel="stylesheet">
<link href="${aier_css_url}jq/jq.css" rel="Stylesheet" />
<link rel="stylesheet" href="${aier_css_url}${aier_jqui_css}/ui.css" />
<link rel="stylesheet" href="${aier_css_url}comm/text.css" />
<link rel="stylesheet" href="${aier_css_url}admin/admin.css" />

<script type="text/javascript" src="${aier_js_url}j.js"></script>
<script type="text/javascript" src="${aier_js_url}b.js"></script>
<script type="text/javascript" src="${aier_js_url}lib/afu.js"></script>
<script type="text/javascript" src="${aier_js_url}jp/hh/ui.js"></script>
<script type="text/javascript" src="${aier_js_url}jp/msg.js"></script>
<script type="text/javascript" src="${aier_js_url}lib/block.js"></script>
<script type="text/javascript" src="${aier_js_url}lib/arrayList.js"></script>
<script type="text/javascript" src="${aier_js_url}jc/cj.js"></script>
<script type="text/javascript" src="${aier_js_url}jq/jq.js"></script>
<script type="text/javascript" src="${aier_js_url}jq/cn.js"></script>
<script type="text/javascript" src="${aier_js_url}comm/text.js"></script>
</head>
<body style="background-color: #EEF2FB;">

	<div
		style="background-color: #EEF2FB;width: 100%;height: 700px; ">

		<div id="tabs">
			<ul>
				<li><a href="#tabs-1">录入卡</a>
				</li>
			</ul>
			<div id="tabs-1" style="height: 500px;">
				<div class="d_content">
					<div class="d_scnOut" style="margin-top: 10px;">
						<div class="d_scname">
							<label>选择文件:</label>
						</div>
						<div class="d_sctext">
							<input type="file" id="file" name="file">
						</div>
					</div>
					<button onclick="upfile();"
						class="ui-button ui-widget ui-state-default ui-corner-all ui-button-text-only"
						role="button" aria-disabled="false"
						style="margin-left: 320px; margin-top: -70px;">
						<span class="ui-button-text">上传</span>
					</button>
				</div>
			</div>
		</div>

	</div>

	<script type="text/javascript">
		$("#tabs").tabs();
		// 上传文件
		function upfile() {
			try {
				$.ajaxFileUpload({
					url : "${aier_url}${aier_urijs}ic_upfile${aier_suffix}",
					secureuri : false,
					fileElementId : 'file',
					dataType : 'json',
					success : function(data, status) {
						if (1 == data.s) {
							alert("上传成功");
						} else {
							alert("上传失败 ");
						}
					},
					error : function(data, status, e) {
						alert("服务器连接超时");
					}
				});
			} catch (e) {
				alert("服务器连接超时");
			}
		}
	</script>
</body>
</html>